FROM openjdk:8-jre
MAINTAINER lzj <lzj960515@163.com>
ENV APP_VERSION 1.0.0.RELEASE
RUN mkdir /app
COPY lzj-all-$APP_VERSION.jar /app/app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/app.jar", "--spring.profiles.active=prod"]
EXPOSE 8080